package com.keyue.controller;

import com.keyue.common.annotation.AnonymousAccess;
import com.keyue.common.constant.ServerResult;
import com.keyue.domain.vo.SysLogQueryVO;
import com.keyue.service.SysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 系统日志(SysLog)表控制层
 *
 * @author makejava
 * @since 2023-09-06 16:24:52
 */
@Api(tags = "系统日志")
@RestController
@RequestMapping("/keyue/admin/logs")
public class SysLogController {
    /**
     * 服务对象
     */
    @Resource
    private SysLogService sysLogService;

    /**
     * 分页查询
     *
     * @param sysLogQueryVO 查询条件
     * @return 查询结果
     */
    @PostMapping("/list")
    @AnonymousAccess
    @ApiOperation("分页查询")
    public ServerResult list(@RequestBody @Validated SysLogQueryVO sysLogQueryVO) {
        return sysLogService.list(sysLogQueryVO);
    }

}

